<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE>
<html>
<head>
<jsp:include page="../header.jsp">
	<jsp:param value="员工登录- 教员界面" name="title" />
</jsp:include>
<link href="static/css/base-css.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
	function dow() {
		$('.ui.labeled.icon.sidebar').sidebar('setting', 'transition',
				'overlay').sidebar('toggle');
	}
	$(function() {
		$('.id').sidebar('setting', 'transition', 'overlay').sidebar('toggle');
		
		$('.link').popup({
		    position:'bottom center'
		  })
		;
	});
	
	function logout(){
		var isLog = confirm("你确定要注销吗？");
		if(isLog){
			location.replace("logout.jsp");
		}
	}
	
</script>

<style type="text/css">
	td {overflow:hidden; text-overflow:ellipsis;}
</style>
</head>
<body>
	<jsp:include page="../menu/menue_login.jsp"></jsp:include>
	<div class="teacher-content"
		style="margin-left: 100px; margin-top: 30px;">
		<div class="ui cards">
			<div class="card" style="width:400px;  min-height: 245px;">
				<div class="content">
					<div class="header">最新录入学员</div>
					<div class="description">
						<table class="ui celled striped table" style="table-layout:fixed;">
							<tbody>
   							<c:if test="${not empty stuList}">
    							<tr id="tr2">
									<td class="collapsing">姓名</td>
									<td class="collapsing">性别</td>
									<td class="collapsing">来源</td>
									<td class="collapsing">电话</td>
									<td class="collapsing">创建时间</td>
								</tr>
			    			</c:if>
								<c:forEach items="${stuList }" var="stu">
									<tr id="tr2">
										<td class="collapsing">${stu.name}</td>
										<td class="collapsing">${stu.gender }</td>
										<td class="collapsing">${stu.source}</td>
										<td class="collapsing">${stu.phone}</td>
										<td class="collapsing"><fmt:formatDate
												value="${stu.createTime}" type="date"></fmt:formatDate></td>
									</tr>
								</c:forEach>
								<c:if test="${empty stuList}">
									<tr>
										<td style="text-align: center;" colspan="6">暂无记录</td>
									</tr>
								</c:if>
							</tbody>
						</table>
					</div>
				</div>
				<a class="ui bottom attached button" href="potential"> <i
					class="add icon"></i> 加载更多
				</a>
			</div>
			<div class="card" style="width:400px;  min-height: 245px;">
				<div class="content">
					<div class="header">最新分配学员</div>
					<div class="description">
						<table class="ui celled striped table" style="table-layout:fixed;">
							<tbody>
							<c:if test="${not empty stuAllocationList}">
								<tr id="tr2">
									<td class="collapsing">姓名</td>
									<td class="collapsing">性别</td>
									<td class="collapsing">来源</td>
									<td class="collapsing">电话</td>
									<td class="collapsing">创建时间</td>
								</tr>
							</c:if>	
								<c:forEach items="${stuAllocationList }" var="stuAllocation">
									<tr id="tr2">
										<td class="collapsing">${stuAllocation.name}</td>
										<td class="collapsing">${stuAllocation.gender }</td>
										<td class="collapsing">${stuAllocation.source}</td>
										<td class="collapsing">${stuAllocation.phone}</td>
										<td class="collapsing"><fmt:formatDate
												value="${stuAllocation.createTime}" type="date"></fmt:formatDate></td>
									</tr>
								</c:forEach>
								<c:if test="${empty stuAllocationList}">
									<tr>
										<td style="text-align: center;" colspan="6">暂无记录</td>
									</tr>
								</c:if>
							</tbody>
						</table>
					</div>
				</div>
				<a class="ui bottom attached button" href="already/allocation/stu">
					<i class="add icon"></i> 加载更多
				</a>
			</div>
			<div class="card" style="width:400px; min-height: 245px;">
				<div class="content">
					<div class="header">最新跟进学员</div>
					<div class="description">
						<table class="ui celled striped table" style="table-layout:fixed;">
							<tbody>
							<c:if test="${not empty followUpList}">
								<tr id="tr2">
									<td class="collapsing">姓名</td>
									<td class="collapsing">咨询师</td>
									<td class="collapsing">跟进时间</td>
									<td class="collapsing">学员等级</td>
									<td class="collapsing">下一次跟进</td>
								</tr>
							</c:if>	
								<c:forEach items="${followUpList }" var="follow">
									<tr id="tr2">
										<td class="collapsing">${follow.name}</td>
										<td class="collapsing">${follow.counselorName }</td>
										<td class="collapsing"><fmt:formatDate
												value="${follow.followTime}" type="date"></fmt:formatDate></td>
										<td class="collapsing">${follow.stuGradeText}</td>
										<td class="collapsing"><fmt:formatDate
												value="${follow.nextTime}" type="date"></fmt:formatDate></td>
									</tr>
								</c:forEach>
								<c:if test="${empty followUpList}">
									<tr>
										<td style="text-align: center;" colspan="6">暂无记录</td>
									</tr>
								</c:if>
							</tbody>
						</table>
					</div>
				</div>
				<a class="ui bottom attached button" href="counselor/mycustomer"> <i
					class="add icon"></i> 加载更多
				</a>
			</div>
		</div>

		<div class="ui cards">
			<div class="card" style="width:400px; min-height: 245px;">
				<div class="content">
					<div class="header">最新缴费学员</div>
					<div class="description">
						<table class="ui celled striped table" style="table-layout:fixed;">
							<tbody>
							<c:if test="${not empty stuList}">
								<tr id="tr2">
									<td class="collapsing">姓名</td>
									<td class="collapsing">性别</td>
									<td class="collapsing">来源</td>
									<td class="collapsing">电话</td>
									<td class="collapsing">创建时间</td>
								</tr>
							</c:if>
								<c:forEach items="${stuList }" var="stu">
									<tr id="tr2">
										<td class="collapsing">${stu.name}</td>
										<td class="collapsing">${stu.gender }</td>
										<td class="collapsing">${stu.source}</td>
										<td class="collapsing">${stu.phone}</td>
										<td class="collapsing"><fmt:formatDate
												value="${stu.createTime}" type="date"></fmt:formatDate></td>
									</tr>
								</c:forEach>
								<c:if test="${empty stuList}">
									<tr>
										<td style="text-align: center;" colspan="6">暂无记录</td>
									</tr>
								</c:if>
							</tbody>
						</table>
					</div>
				</div>
				<div class="ui bottom attached button">
					<i class="add icon"></i> 加载更多
				</div>
			</div>
			<div class="card" style="width:400px;  min-height: 245px;">
				<div class="content">
					<div class="header">最新面试学员</div>
					<div class="description">
						<table class="ui celled striped table" style="table-layout:fixed;">
							<tbody>
							<c:if test="${not empty jobFPList}">
								<tr id="tr2">
									<td class="collapsing">姓名</td>
									<td class="collapsing">电话</td>
									<td class="collapsing">面试</td>
									<td class="collapsing">公司地址</td>
									<td class="collapsing">薪水</td>
								</tr>
							</c:if>
								<c:forEach items="${jobFPList }" var="job">
									<tr id="tr2">
										<td class="collapsing">${job.name}</td>
										<td class="collapsing">${job.phone }</td>
										<td class="collapsing"><fmt:formatDate
												value="${job.interDate}" pattern="MM-dd"></fmt:formatDate></td>
										<td class="collapsing">${job.comAddress}</td>
										<td class="collapsing">${job.salary}</td>
									</tr>
								</c:forEach>
								<c:if test="${empty jobFPList}">
									<tr>
										<td style="text-align: center;" colspan="6">暂无记录</td>
									</tr>
								</c:if>
							</tbody>
						</table>
					</div>
				</div>
				<a class="ui bottom attached button" href="job/employed"> <i
					class="add icon"></i> 加载更多
				</a>
			</div>
			<div class="card" style="width:400px; min-height: 245px;">
				<div class="content">
					<div class="header">最新管理</div>
					<div class="description">发布最新业绩和相关的注意事项</div>
				</div>
				<div class="ui bottom attached button">
					<i class="add icon"></i> 加载更多
				</div>
			</div>
		</div>
	</div>
</body>
</html>